package cn.stylefeng.guns;

import cn.stylefeng.roses.kernel.db.starter.GunsDataSourceAutoConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.flowable.spring.boot.FlowableSecurityAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;

/**
 * SpringBoot方式启动类
 *
 * @author fengshuonan
 * @date 2020/12/1 17:50
 */
@Slf4j
@EnableNeo4jRepositories("cn.stylefeng.guns.modular.business.neo4j.repository")
@EntityScan(basePackages = {"cn.stylefeng.guns.modular.business.neo4j.entity", "cn.stylefeng.guns.modular.business.neo4j.relationship"} )
//@ComponentScan(basePackages={“com.whu.commom.redis”})
//@MapperScan({"cn.stylefeng.guns.modular.business.mapper"})
@SpringBootApplication(scanBasePackages = {"cn.stylefeng"}, exclude = {FlywayAutoConfiguration.class, GunsDataSourceAutoConfiguration.class, FlowableSecurityAutoConfiguration.class})
public class GunsApplication  {

    public static void main(String[] args) {
        SpringApplication.run(GunsApplication.class, args);
        log.info(GunsApplication.class.getSimpleName() + " is success!");
    }

}

